﻿using Little.Soldier.SWIFT;
using Little.Soldier.SWIFT.Definition;
using System.ComponentModel;

namespace Little.Soldier.SWIFT.Messages.Category0
{
  public class MT077 : SwiftMessage
  {
    private static SwiftMessageDefinition MessageDefinition;
    private static SwiftTagDefinition U0002;
    private static SwiftTagSubItemDefinition U0003;
    private static SwiftTagDefinition U0004;
    private static SwiftTagSubItemDefinition U0005;

    [Description("Value Date Today")]
    public Tag116 ValueDateToday_116
    {
      get
      {
        return new Tag116((SwiftElement) this, 0, (SwiftDefinitionElement) MT077.U0002);
      }
    }

    [Description("Value Date Today")]
    public Tag116 Tag116_ValueDateToday
    {
      get
      {
        return this.ValueDateToday_116;
      }
    }

    [Description("Lt Subsets Shared Flag")]
    public Tag118 LTSubsetsSharedFlag_118
    {
      get
      {
        return new Tag118((SwiftElement) this, 0, (SwiftDefinitionElement) MT077.U0004);
      }
    }

    [Description("Lt Subsets Shared Flag")]
    public Tag118 Tag118_LTSubsetsSharedFlag
    {
      get
      {
        return this.LTSubsetsSharedFlag_118;
      }
    }

    public MT077()
      : base(true)
    {
    }

    public MT077(SwiftMessage message)
      : base(message)
    {
    }

    internal override SwiftMessageDefinition MsgDefinition()
    {
      return MT077.MessageDefinition;
    }

    protected override void InitSwiftMessageDefinition()
    {
      MT077.MessageDefinition = new SwiftMessageDefinition("MT077", "");
      MT077.U0002 = new SwiftTagDefinition("ValueDateToday_116", "Value Date Today");
      MT077.U0002.TagName = "{116:";
      MT077.U0002.Mandatory = false;
      MT077.U0003 = new SwiftTagSubItemDefinition("ValueDateToday", "Value Date Today");
      MT077.U0002.Elements.Add((SwiftDefinitionElement) MT077.U0003);
      MT077.MessageDefinition.Elements.Add((SwiftDefinitionElement) MT077.U0002);
      MT077.U0004 = new SwiftTagDefinition("LTSubsetsSharedFlag_118", "Lt Subsets Shared Flag");
      MT077.U0004.TagName = "{118:";
      MT077.U0004.Mandatory = false;
      MT077.U0005 = new SwiftTagSubItemDefinition("LTSubsetsSharedFlag", "Lt Subsets Shared Flag");
      MT077.U0004.Elements.Add((SwiftDefinitionElement) MT077.U0005);
      MT077.MessageDefinition.Elements.Add((SwiftDefinitionElement) MT077.U0004);
    }
  }
}
